package com.mingqijia.gassafety.webserver.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-03-07
 */
@ApiModel(value = "通讯记录-控制器日志")
@Data
public class DtuMeasureLogResponse {
    @ApiModelProperty("平台接收时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;

    @ApiModelProperty("电压")
    private String voltage;


    @ApiModelProperty("信号情况 1-极差 2-差 3-一般 4-好 5-极好")
    private Integer signal;

    /**
     * false:总线正常 true:总线短路
     */
    @ApiModelProperty("总线情况:false正常")
    private Boolean bsB;

    /**
     * false:主电正常
     */
    @ApiModelProperty("主电情况:false正常")
    private Boolean mpb;
    /**
     * false:备电正常
     */
    @ApiModelProperty("备电情况:false正常")
    private Boolean bpb;
    /**
     * 移除
     */
    @ApiModelProperty("充电情况:false正常")
    private Boolean cb;

}
